package com.cn.service.server.PartsManagement;

import com.cn.bean.pojo.PartsManagement.BusinessTypeTable;
import com.cn.bean.pojo.sys.System_parameter_sub_table;
import org.apache.ibatis.annotations.Param;
import com.cn.config.config.Result;

import java.util.List;

public interface BusinessTypeService {
    //查找状态为1的分类
    List<BusinessTypeTable> selectBusinessTypeAsideAuto1();
    List<BusinessTypeTable> selectBusinessTypeAside();
    List<BusinessTypeTable> selectBusinessType(@Param("limit") int limit, @Param("page") int page);
    List<System_parameter_sub_table> selectSystem_parameter_sub_table(@Param("tableName") String tableName,@Param("field")String field);
    Result addBusinessType(@Param("name") String name,@Param("description") String description,@Param("status") int status,@Param("level") int level,@Param("parentID") int parentID,@Param("isLeaf") int isLeaf);
    Result deleteBusinessType(@Param("ID") int ID);
    Result upDateBusinessType(@Param("ID") int ID, @Param("code") String code, @Param("name") String name, @Param("description") String description, @Param("status") int status, @Param("level") int level, @Param("parentID") int parentID, @Param("isLeaf") int isLeaf);

}
